home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 1
/
PC World Interactive 1 - Nisan 1997.iso
/
prog
/
masa
/
25
/
ncg_free.exe
/
NCG_Free
/
INSTALL.INF
< prev
next >
Wrap
INI File
|
1996-10-15
|
15KB
|
589 lines
;******************************************************************************
;* Norton CrashGUard 1.0 installation script - Freeware edition *
;******************************************************************************
; Script Switch Numbers
; SWITCH_IS_NT40 01
; SWITCH_IS_WIN95 02
; SWITCH_PRODUCT_EXISTS 08
; SWITCH_CUSTOM_INSTALL 09
; SWITCH_RESTORE_DEFAULTS 11
; SWITCH_PREVIOUS 50
; SWITCH_NEXT 51
; SWITCH_CANCEL 52
; SWITCH_EXIT_CONTINUE 96
; SWITCH_EXIT_RESTART 97
; SWITCH_EXIT_REBOOT 98
[InstallVersion]
4.0
[process]
EnableForceWrite()
EnableOverwrite()
EnableWin95Shell()
Enable256Advos()
SaveRegistry(SaveRegGroup)
SetActiveCopy(MainCopy, install.inf)
Backup(CustDLLCopy)
Backup(SettingsDLLCopy)
;Bitmaps(Bitmaps)
DisableHelp()
CallProc(InitCustomDLL)
switch53=CallProcEx(bIsProductExpired)
#if(switch53)
Exit()
#endif
#ifnot(switch02)
MessageBox(MB_IncorrectWinVer)
switch97=FALSE
Exit()
#endif
CallProc(DelWinInit)
CallProc(CheckForExistingProduct)
CallProc(SetDefaultProductDirectory)
WizardPanel(WizWelcome, siwstngr.dll)
WizardProcessPanel()
WizardPanel(WizLicense, siwstngr.dll)
WizardProcessPanel()
SelectOption(LiveUpdate)
SelectOption(RequiredFiles)
WizardPanel(WizSelectLocation, siwstngr.dll)
WizardProcessPanel()
CallProc(SetSymantecDirectory)
CallProc(SetLiveUpdateDirectory)
WizardIncludePanel(WizKeepSettings)
WizardPanel(WizKeepSettings, siwstngr.dll)
#if(switch08)
WizardProcessPanel()
#else
WizardExcludePanel(WizKeepSettings)
#endif
WizardPanel(WizSetupReview, siwstngr.dll)
WizardProcessPanel()
#ifnot(switch08)
switch11=TRUE
#endif
#if(switch11)
CallProc(DeleteSettings)
#endif
switch53=CallProcEx(CreateInstallDirs)
#ifnot(switch53)
MessageBox(MB_UnableToCreateInstallDirs)
switch97=FALSE
goto(Exit)
#endif
;switch53=CallProcEx(bIsDiskOne)
;#ifnot(switch53)
; Exit()
;#endif
switch53=CallProcEx(bInstallLiveUpdate)
#ifnot(switch53)
DeselectOption(LiveUpdate)
#endif
Copy()
CallProc(HourglassOn)
CallProc(RegisterSharedLocation)
CallProc(RegisterSharedUsage)
CallProc(RegisterSharedUsage_LiveUpdate)
CallProc(RegisterProductInfo)
switch53=CallProcEx(bWinInetNewer)
#if(switch53)
CallProc(InstallWinInet)
#endif
CallProc(HourglassOff)
Groups(MainGroup)
WizardPanel(WizHowToReach, siwstngr.dll)
WizardProcessPanel()
switch53=IsFileInUse()
#if(switch53)
switch96=FALSE
switch97=TRUE
switch98=FALSE
#else
switch96=TRUE
switch97=FALSE
switch98=FALSE
#endif
; ONLINE REGISTRATION DIALOGS
ResetTarget(SetTargetToTarget1)
WizardPanel(WizRegisterNow, siwstngr.dll)
WizardIncludePanel(WizRegisterPersonal)
WizardIncludePanel(WizRegisterMarketing)
WizardIncludePanel(WizRegisterDecide)
WizardSetSkip(WizRegisterNow, WizFinish)
WizardProcessPanel()
WizardPanel(WizRegisterPersonal, siwstngr.dll)
WizardSetSkip(WizRegisterPersonal, WizFinish)
WizardProcessPanel()
WizardPanel(WizRegisterMarketing, siwstngr.dll)
WizardSetSkip(WizRegisterMarketing, WizFinish)
WizardProcessPanel()
WizardPanel(WizRegisterDecide, siwstngr.dll)
WizardSetSkip(WizRegisterDecide, WizFinish)
WizardProcessPanel()
WizardPanel(WizFinish, siwstngr.dll)
Delete(DelWintDist)
WizardExcludePanel(WizRegisterPersonal)
WizardExcludePanel(WizRegisterMarketing)
WizardExcludePanel(WizRegisterDecide)
WizardProcessPanel()
:Exit
Delete(DelPipeline)
#if(switch97)
switch53=CallProcEx(bRestartWindows)
#if(switch53)
ExitRestart()
#else
Exit()
#endif
#endif
CallProc(LaunchCrashGuard)
Exit()
;###########################################################################
;###########################################################################
;***************************************************************************
;* SubProc Executed When Install Takes Over As Shell
;***************************************************************************
[subproc]
Backup(CustDLLCopy) ; Copy custom dll to windows dir
Backup(SettingsDLLCopy)
Return()
;***************************************************************************
;* Dialog Info *
;***************************************************************************
[MainCopy:CopyDialog]
caption = "Copying files..."
posx = -1
posy = -20
[MainCopy:Primary]
caption = "Select Components"
button1 = "Select..."
button2 = "Select..."
button3 = "Select..."
button4 = "Select..."
button5 = "Select..."
text = PrimaryText
[PrimaryText]
"Please select the items you want to install. If a selection"
"has a button to the right, you can select individual files or"
"components."
;***************************************************************************
;* Message Text *
;***************************************************************************
[cancel]
caption = "Exit Install?"
text = "Are you sure that you want to exit?"
[cancelshell]
caption = "Exit Install?"
"You have chosen to cancel the Install"
"program. In order to reset the Windows"
"environment, Install will also restart"
"Windows. Are you sure you want to exit?"
[FileCopy]
copycaption = "Installing Files"
errorcaption = "Error Copying Files"
insertcaption = "Insert Diskette"
Message = MessageText
[NotImplemented]
caption = "Feature Not Implemented"
"This feature has not yet been implemented."
[MB_IncorrectWinVer]
caption = "Incorrect Windows Version"
"Norton CrashGuard (TM) 1.0 requires Windows 95. Setup is unable to proceed."
[MB_UnableToCreateInstallDirs]
caption="Fatal Error"
"Cannot create target directories. Setup is unable to proceed."
;***************************************************************************
;* File Exist verifications *
;***************************************************************************
;***************************************************************************
;* Delete Files *
;***************************************************************************
[DelWintDist]
wintdist.exe, TARGET1
[DelPipeline]
pipeline.ini, TARGET1
mailbusi.ctl, TARGET1
cramapi.dll, TARGET1
siwpipl.exe, TARGET1
pipeline.dll, TARGET1
pipedlg.dat, TARGET1
modem.id, TARGET1
$flecomp.tmp, TARGET1
;***************************************************************************
;* External function calls (DLL) *
;***************************************************************************
[InitCustomDLL]
dll = siwstngr.dll
function = InitCustomDLL
[ExitHookProc]
dll = siwstngr.dll
function = ReleaseCustomDLL
[TestFunction]
dll=siwstngr.dll
function=TestFunction
[CheckForExistingProduct]
dll=siwstngr.dll
function=CheckForExistingProduct
[SetDefaultProductDirectory]
dll=siwstngr.dll
function=SetDefaultProductDirectory
[SetSymantecDirectory]
dll=siwstngr.dll
function=SetSymantecDirectory
[CreateInstallDirs]
dll=siwstngr.dll
function=CreateInstallDirs
[RegisterSharedLocation]
dll=siwstngr.dll
function=RegisterSharedLocation
[RegisterSharedUsage]
dll=siwstngr.dll
function=RegisterSharedUsage
[RegisterProductInfo]
dll=siwstngr.dll
function=RegisterProductInfo
[KillRunningTasks]
dll=siwstngr.dll
function=KillRunningTasks
[HourglassOn]
dll=siwstngr.dll
function=HourglassOn
[HourglassOff]
dll=siwstngr.dll
function=HourglassOff
[SetUninstallFlags]
dll=siwstngr.dll
function=SetUninstallFlags
[RemoveUninstallFlags]
dll=siwstngr.dll
function=RemoveUninstallFlags
[DeleteSettings]
dll=siwstngr.dll
function=DeleteSettings
[bIsDiskOne]
dll=siwstngr.dll
function=bIsDiskOne
[InstallWinInet]
dll=siwstngr.dll
function=InstallWinInet
[RefreshDesktop]
dll=siwstngr.dll
function=RefreshDesktop
[bRestartWindows]
dll=siwstngr.dll
function=bRestartWindows
[bRebootSystem]
dll=siwstngr.dll
function=bRebootSystem
[SetLiveUpdateDirectory]
dll=siwstngr.dll
function=SetLiveUpdateDirectory
[RegisterSharedUsage_LiveUpdate]
dll=siwstngr.dll
function=RegisterSharedUsage_LiveUpdate
[DelWinInit]
dll=siwstngr.dll
function=DelWinInit
[bInstallLiveUpdate]
dll=siwstngr.dll
function=bInstallLiveUpdate
[AddLiveUpdateToProgramGroup]
dll=siwstngr.dll
function=AddLiveUpdateToProgramGroup
[bWinInetNewer]
dll=siwstngr.dll
function=bWinInetNewer
[bIsSufficientDiskSpace]
dll=siwstngr.dll
function=bIsSufficientDiskSpace
[bIsProductExpired]
dll=siwstngr.dll
function=bIsProductExpired
[LaunchCrashGuard]
dll=siwstngr.dll
function=LaunchCrashGuard
;***************************************************************************
;* Misc install functions *
;***************************************************************************
[Bitmaps]
color = %s\symantec.rle, -1, -1
[MainCopy:Advo]
posx = 20
posy = 20
location = siwstngr.dll
count = 1
BitmapsOnly=1
[SaveRegGroup]
WINDOWS, system.ncg, user.ncg
;***************************************************************************
;* Set Directories *
;***************************************************************************
[CrDirTarget]
%s, TARGET1
[SetTargetToTarget1]
reset = TARGET
location = %s, TARGET1
;***************************************************************************
;* File backup *
;***************************************************************************
[CustDLLCopy]
siwstngr.dll, siwstngr.dll, SOURCE, TEMPDIR
[SettingsDLLCopy]
cgsetngs.dll, cgsetngs.dll, SOURCE, TEMPDIR
;***************************************************************************
;* Autoexec Mods *
;***************************************************************************
;***************************************************************************
;* SetShell section *
;***************************************************************************
[SetShell]
WinIniName = win.ini
SystemIniName = system.ini
Message = MessageBox.SetShellMessage
SysSectionName = boot
WinSectionName = windows
shell = %s\setup.exe
load =
run =
SetShellIfLoaded=
Backup = Backup.SetShellSave
Restore = Backup.SetShellRestore
Active=no
IfActiveList=LoadedList
SubProcess=SubProc
[SetShellSave]
win.ini, win.siw, WINDOWS, WINDOWS
system.ini, system.siw, WINDOWS, WINDOWS
[SetShellRestore]
system.siw, system.ini, WINDOWS, WINDOWS
win.siw, win.ini, WINDOWS, WINDOWS
[_LoadedList]
[SetShellMessage]
caption = "Norton CrashGuard (TM) Setup"
"Welcome to Norton CrashGuard (TM) Setup. Please select OK to allow Setup to restart Windows and continue the installation. Press Cancel to exit Setup."
;***************************************************************************
;* Groups *
;***************************************************************************
[MainGroup]
"Norton CrashGuard", ncg.grp
[Norton CrashGuard]
"Norton CrashGuard (TM)", cgmain.exe, RequiredFiles,,TARGET1,,,,TARGET1
"Norton CrashGuard (TM) Release Notes", readme.txt, RequiredFiles,,TARGET1,,,,TARGET1
;***************************************************************************
;* Copy *
;***************************************************************************
[MainCopy]
;SelectionType.ComponentName, "SelectionDlgText", Size, Required?,<Files>?,ShowItem?
CopyMain.RequiredFiles, "Required Files - %ldK", 0, Y, N, Y
CopyMain.LiveUpdate, "Symantec LiveUpdate - %ldK", 0, N, N, N
;***************************************************************************
;* Wizard Panels *
;***************************************************************************
[WizWelcome]
Caption="Norton CrashGuard (TM) Setup"
Title="Welcome"
DlgProc=_WelcomeDlgProc@16
ResourceID=501
Bitmap16=900
PanelDataProc=_WelcomeDataProc@0
PanelFlags=First
[WizLicense]
Caption="Norton CrashGuard (TM) Setup"
DlgProc=_LicenseDlgProc@16
PanelDataProc=_LicenseDataProc@0
ResourceId=502
[WizSelectLocation]
Caption="Norton CrashGuard (TM) Setup"
Title="Program Location"
DlgProc=SIW_ProductDlgProc
ResourceId=1000
Bitmap16=903
PanelDataProc=DefaultDataProc
[WizSetupReview]
Caption="Norton CrashGuard (TM) Setup"
Title="Setup Review"
DlgProc=SIW_ProductDlgProc
ResourceId=1001
Bitmap16=900
PanelDataProc=DefaultDataProc
[WizHowToReach]
Caption="Norton CrashGuard (TM) Setup"
Title="How to Reach Us"
DlgProc=_ReachDlgProc@16
ResourceId=513
Bitmap16=213
PanelFlags=First
[WizFinish]
Caption="Norton CrashGuard (TM) Setup"
Title="Installation Complete"
DlgProc=SIW_ProductDlgProc
ResourceId=1003
;Bitmap16=906
Bitmap16=900
PanelDataProc=DefaultDataProc
PanelFlags=last+finish
[WizKeepSettings]
Caption="Norton CrashGuard (TM) Setup"
Title="Keep Current Settings?"
DlgProc=SIW_ProductDlgProc
ResourceId=1010
Bitmap16=900
PanelDataProc=DefaultDataProc
[WizRegisterNow]
Caption="Norton CrashGuard (TM) Setup"
Title="Register Now"
DlgProc=_RegNowDlgProc@16
PanelDataProc=_RegNowDataProc@0
ResourceId=504
Bitmap16=204
PanelFlags=Skip
[WizRegisterPersonal]
Caption="Norton CrashGuard (TM) Setup"
DlgProc=_UsaRegDlgProc@16
PanelDataProc=_UsaRegDataProc@0
ResourceId=505
PanelFlags=Skip
[WizRegisterMarketing]
Caption="Norton CrashGuard (TM) Setup"
DlgProc=_MarketingDlgProc@16
PanelDataProc=_MarketingDataProc@0
ResourceId=506
PanelFlags=Skip
[WizRegisterDecide]
Caption="Norton CrashGuard (TM) Setup"
Title="Send Us Your Form"
DlgProc=_SendRegDlgProc@16
PanelDataProc=_SendRegDataProc@0
ResourceId=514
Bitmap16=214
PanelFlags=Skip
[WizNoDiskSpace]
Caption="Norton CrashGuard (TM) Setup"
Title="Insufficient Disk Space"
DlgProc=SIW_ProductDlgProc
ResourceId=1011
Bitmap16=900
PanelDataProc=DefaultDataProc